Skip to content

Improve StrSplit returnType #3999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 1.12.x
Choose a base branch
from

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented May 18, 2025

Hi @herndlm

I saw you worked multiple times on this extension with

So you might want to review this.

I still need to update the LegacyNodeScopeResolverTest.

@ondrejmirtes Do you want me to fix the LegacyNodeScopeResolverTest as if, or would it be ok to migrate them inside the new NodeScopeResolverTest instead ?

@VincentLanglet
Copy link
Contributor Author

If it's ok, I opened #4000 first

@VincentLanglet VincentLanglet force-pushed the strSplit branch 3 times, most recently from 7a7038b to 4cb2211 Compare June 12, 2025 21:44
@VincentLanglet VincentLanglet force-pushed the strSplit branch 7 times, most recently from b4969b9 to 5819f3b Compare June 13, 2025 00:10
@VincentLanglet VincentLanglet marked this pull request as ready for review June 13, 2025 00:40
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

foreach ($constantStrings as $constantString) {
$value = $constantString->getValue();

if ($encoding === null && $value === '') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic exists to avoid the same issue than phpstan/phpstan#13129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants